<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>1-背景图-平铺</title>
    <style>
        .box{
            width: 1100px;
            height: 500px;
            border: 3px dashed red;
            /* 居中 */
            margin: 30px auto;
            /* 设置背景图 */
            background-image: url(images/200.png);
            background-repeat: repeat;
            background-repeat: no-repeat;
            background-repeat: repeat-x;
            background-repeat: repeat-y;
        }
    </style>
</head>
<body>
    <!-- 
        背景图：
            background-image/background:url('图片地址')
            默认水平和垂直平铺的
        平铺:
            background-repeat:
                以上效果：观察的时候(盒子的宽高>背景图的宽高)
                取值：
                    repeat    默认水平/垂直平铺
                    no-repeat 不平铺
                    repeat-x  水平方向平铺
                    repeat-y  垂直方向平铺
     -->
    <div class="box"></div>
</body>
</html>